<!DOCTYPE html>
<html>
<?php
	session_start();
	include "db_function.php";

	if(isset($_SESSION['uid']) && $_SESSION['uid'] > 0){
		header("location:index.php");
		die;
	}
?>
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link media="all" href="./css/one-debug.css" rel="stylesheet">
		<link media="all" href="./css/main.css" rel="stylesheet">
		<script type=""text/javascript src="./js/jq/jquery-1.8.3.js"></script>
		<script type=""text/javascript src="./js/my.js"></script>
</head>
<body>
	<div class="lg-reg-box">
		<div class="ui-grid-9">
			<div class="ui-box">
				<div class="ui-box-head">
					<h3 class="ui-box-head-title">注册页面</h3>
	       			<span class="ui-box-head-text">输入您的用户名和密码</span>
	       			<a href="login.php" class="ui-box-head-more">已有账号直接登陆</a>
				</div>
				<div class="ui-box-container">
					<div class="ui-box-content">
						<form action="./userbackend.php" method="post"  class="ui-form">
							<div class="ui-form-item">
								<label for="" class="ui-label">
		                			<span class="ui-form-required">*</span>用户名
		          				</label>
								<input type="text" name="username" class="ui-input"/>
							</div>
							<div class="ui-form-item">
								<label for="" class="ui-label">
		                			<span class="ui-form-required">*</span>密码
		          				</label>
								<input type="password" name="pwd" class="ui-input"/>
							</div>
							<div class="ui-form-item">
							<input type="submit" name="reg" value="   注册   " class="ui-button ui-button-lorange"/> 
							</div>
						</form>
					</div>
				</div>
				
			</div>
		</div>	
	</div>
</body>
</html>